package com.zz.study.sharding;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author xjx
 */

@SpringBootApplication
@MapperScan("com.zz.study.sharding.mappers")
@EnableSwagger2
public class ShardingJdbcApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShardingJdbcApplication.class, args);
        long maxMemory = Runtime.getRuntime().maxMemory();
        long maxMemoryMB = maxMemory / (1024 * 1024); // 转换为MB
        System.out.println("Max Heap Memory: " + maxMemoryMB + " MB");
    }
}
